package com.itCar.base.api.wxApi.wxAuth.pojo.info;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;

import java.util.Map;

/**
 * @ClassName: TextMessage
 * @Description: TODO
 * @author: liuzg
 * @Date: 2022/8/31 16:49
 * @Week: 星期三
 * @Version: v1.0
 */
@Data
@XStreamAlias("xml")
public class TextMessage extends BaseMessage {

    @XStreamAlias("Content")
    private String content;

    public TextMessage(){}

    public TextMessage(Map<String, String> requestMap, String content){
        super(requestMap);
        // 设置文本消息的msgType为text
        this.setMsgType("text");
        this.content = content;
    }

    @Override
    public String toString() {
        return "TextMessage{" +
                // 调用父类的toString()
                super.toString() +
                "content='" + content + '\'' +
                '}';
    }
}
